package com.ldaps.test.repo;

import com.ldaps.test.entity.Person;
import org.springframework.ldap.core.LdapTemplate;

import java.util.List;

/**
 * @author daxue0929
 * @date 2021/10/11
 */

public interface IPersonRepo {

    void setLdapTemplate(LdapTemplate ldapTemplate);

    List<String> getAllPersonNames();

    List<String> getAllPersonNamesWithTraditionalWay();

    List<Person> getAllPersons();

    Person findPersonWithDn(String dn);

    List<String> getPersonNamesByOrgId(String orgId);
}
